home *** CD-ROM | disk | FTP | other *** search
- > I have one other small problem (more an annoyance, really) in that
- >I use Input #1 at the start of the game to load in the
- >level data which takes the form of several arrays of dimensions
- >(40,40) or so, and it takes absolutely *ages*. Is there
- >any quicker way of loading variables from disk? I have tried
- >moving the files to ram: first but this makes no substantial
- >speed difference from the hard drive. I dread to think
- >what it would be like off floppies.
-
- Use Ssave, i.e.
-
- Dim ARRAY(X,Y)
- ..
- Ssave 1,Varptr(ARRAY(0,0)) To Varptr(ARRAY(X,Y)+4)
-
- and later:
-
- Sload 1 To Varptr(ARRAY(0,0)),(X+1)*(Y+1)*4
-
- Alternatively, use Copy to copy the arrays to a memory bank, and
- then just Save the entire bank.
-
- --Andy Church (achurch@goober.mbhs.edu)
- WWW: http://www.mbhs.edu/~achurch/
- AMOS Web Site: http://www.mbhs.edu/~achurch/amos/
-
-